package cn.itsource.pethome.user.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    //主键id
    private Long id;
    //用户名
    private String username;
    //邮箱
    private String email;
    //电话号码
    private String phone;
    //盐值
    private String salt;
    //密码
    private String password;
    //状态 1已激活 0待激活 -1未激活
    private Integer state;
    //年龄
    private Integer age;
    //时间
    private Date createtime = new Date();
    //头像
    private String headImg;
}
